home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
CDICTION
/
CSMARTTE.H
< prev
next >
Wrap
Text File
|
1990-01-12
|
1KB
|
35 lines
/*****************************************************************************
CSmartTETask
Implements undo for cut, copy, paste, clear, and typing commands.
Undo is implemented simply by saving off the entire text handle of
the TEHandle. This is fine for small pieces of text, as in dialogs,
but for larger pieces of text, a more economical method would be preferred.
by Dan Podwall - you may do anything you please with this code except
charge for it, with the exception of normal network download charges.
SUPERCLASS = CTask
*****************************************************************************/
#define _H_CSmartTETask
#include "CTask.h"
#include "CSmartEditText.h"
struct CSmartTETask : CTask
{
struct CSmartEditText *itsEditText;
tTE_Command itsCommand;
Handle undoText;
Int16 startSel, endSel;
Boolean wasDirty;
virtual void ISmartTETask( struct CSmartEditText *theEditText, Int16 firstNameIndex,
tTE_Command theCommand);
virtual void Undo( void);
virtual void Dispose( void);
};